package org.hdl.anima.transport;

import org.hdl.anima.AppConf;
import org.hdl.anima.transport.support.AbstractClient;
import org.hdl.anima.transport.support.AbstractServer;

/**
 * 
 * @author qiuhd
 * @since  2014-8-1
 * @version V1.0.0
 */
public interface Transporter {

	AbstractServer bind(AppConf conf,ChannelHandler handler) throws RemoteException ;
	
	AbstractServer bind(AppConf conf,ChannelHandler handler,Codec codec) throws RemoteException ;
	
	AbstractClient connect(AppConf conf,ChannelHandler handler, Codec codec,String remoteHost, int remotePort, int connectTimeout) throws RemoteException ; 
}

